<%--
    Document   : MuestraInventario
    Created on : 30/05/2012, 08:45:05 PM
    Author     : JULIAN
--%>


<%@page import="Clases.ObjetoProducto"%>
<%@page import="java.util.ListIterator"%>
<%@page import="java.util.Vector"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%
   HttpSession session_actual = request.getSession(true);

   Vector v = (Vector) session_actual.getAttribute("vector");

   ListIterator itr = v.listIterator();
   ObjetoProducto obj = new ObjetoProducto();
%>
<html>
    <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Seleccionar Productos</title>
    <p align="center">><font color="White">Inventario<p></font>
    </head>
    <body>
    <Body Bgcolor="#000000">
        <form method="post" action="ConsultaInventario.jsp">
	<TD COLSPAN=2>
	<INPUT type="submit" style="Position:Absolute; left:45%; top:45%" value="Regresar">
	</TD>
            </table>
            <td colspan=2>
            <table style="position:absolute;top:100px;left:440px;"
            <table align = center border = 1>
            <thread>
                <th><font color="White">Nombre</th></font>
                <th><font color="White">Cantidad</th></font>
               </thread>
              </tbody>
             <% while(itr.hasNext()){
                  obj = (ObjetoProducto) itr.next();


                  %><tr>
                <td><font color="White"><%=obj.getNombreP()%></td></font>
                <td><font color="White"><%=obj.getCantidadP()%></td></font>
                <% }
             %>

              </tbody>
             </table>
          </td>
        </form>

    </body>
</html>
